<script type="text/javascript">

	
	//表格查询  
	function reloadOrderTracing() {
		var params = orderTracing_list.datagrid('options').queryParams; //先取得 datagrid 的查询参数  
		printLog(params);
		orderTracing_list.datagrid('reload'); //设置好查询参数 reload 一下就可以了  
		orderTracing_list.datagrid('unselectAll');
		orderTracing_list.datagrid('uncheckAll');
	}


	
	
	function clearOrderTracingSearch() {
		setGridSearchParams('orderTracing_list','orderTracingSearchForm',true,reloadOrderTracing);
	}
	
	//根据条件查询
	function orderTracingSearch() {
		setGridSearchParams('orderTracing_list','orderTracingSearchForm',false,reloadOrderTracing);
	}
	

</script>


<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false,title:'订单号查询'" style="height: 150px; overflow: hidden;">
		<table cellpadding="5">
			<tr>
				<td>
					订单号：
				</td>
				<td>
					<form id="orderTracingSearchForm">
							<textarea id="orderTracingOrderNos" style="height: 100px;width:650px"  name="orderNos" class="easyui-validatebox"  data-options="prompt: '查询多个订单号，请用回车换行'"></textarea>
					</form>
				</td>
				<td>
					<@eu.linkbutton showName="查询" iconCls="icon-search" onclick="orderTracingSearch()"/>
				</td>
				<td>
	 		 		<@eu.linkbutton showName="清空" iconCls="icon-clear" onclick="clearOrderTracingSearch()"/>
				</td>
			</tr>
		</table>
	</div>
	<div data-options="region:'center',border:false,title:'订单跟踪'">
		
		<@eu.datagrid id="orderTracing_list" idField="id" operations="${operations!}"
			 url="orderTracing.do?loadList&orderNos=XXX" rownumbers="false" onDblClickRow="onDblClickOrderTracingRow(rowIndex, rowData)"
			 item="com.xdtech.ad.vo.OrderTracingItem"/>
	</div>
</div>
<script>
	if(window.tabsParams) {
		$('#orderTracingOrderNos').val(window.tabsParams);
		orderTracingSearch();
	}
	window.tabsParams = undefined;
</script>